﻿@using FastReport;
@using FastReport.Web;

@{
    ViewBag.Title = "报表展现";
    Layout = "~/Views/Shared/_Index_Layout.cshtml";
}

@WebReportGlobals.Styles()
@WebReportGlobals.Scripts()

    <div class="span12">
        <div class="widget box light-grey">
            <div class="widget-title">
                <h4><i class="icon-globe"></i>查看报表</h4>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                    <a href="#widget-config" data-toggle="modal" class="config"></a>
                    <a href="javascript:;" class="reload"></a>
                    <a href="javascript:;" class="remove"></a>
                </div>
            </div>
            <div class="widget-body">
                @*<input type="hidden" id="txtReportNum" name="txtReportNum" value="@ViewBag.Entity.ReportNum" />
                    @if ((ViewBag.ListParam as List<Git.Storage.Entity.Report.ReportParamsEntity>).Count > 0)
                    {
                        <div class="row-fluid" id="tbSearch">
                            @foreach (Git.Storage.Entity.Report.ReportParamsEntity item in ViewBag.ListParam)
                            {
                                <div class="span2">
                                    <div class="control-group">
                                        <label class="control-label">@item.ShowName</label>
                                        <div class="controls">
                                            @if (item.ParamElement == ((int)Git.Storage.Common.EElementType.Date).ToString())
                                            {
                                                <input id="arg_@item.ParamName.Replace("@","")" name="arg_@item.ParamName.Replace("@","")" type="text" class="span12" placeholder="" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                                            }
                                            else if (item.ParamElement == ((int)Git.Storage.Common.EElementType.DateTime).ToString())
                                            {
                                                <input id="arg_@item.ParamName.Replace("@","")" name="arg_@item.ParamName.Replace("@","")" type="text" class="span12" placeholder="" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                                            }
                                            else
                                            {
                                                <input id="arg_@item.ParamName.Replace("@","")" name="arg_@item.ParamName.Replace("@","")" type="text" class="span12" placeholder="" />
                                            }
                                        </div>
                                    </div>
                                </div>
                            }
                            <div class="span2">
                                <div class="control-group">
                                    <label class="control-label">&nbsp;</label>
                                    <div class="controls">
                                        <a id="gritter-remove-all" class="btn btn-info" href="javascript:void(0)" onclick="ReportListManager.Search()"><i class="icon-search"></i>&nbsp;搜索</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    }*@

                @ViewBag.WebReport.GetHtml()
            </div>

        </div>
    </div>
    @Html.Partial("~/Views/Shared/_Partial_AutoGrid.cshtml")
    <script type="text/javascript">
        $(document).ready(function ()
        {

        });
    </script>
